package ${props.serviceImplPackage};

import org.springframework.stereotype.Service;

import ${props.serviceInterfacePackage}.I${modelName}Biz;
import com.lxx.common.BaseServiceImpl;
import ${javaClientPackage}.${modelName}Dao;
import ${javaModelPackage}.${modelName};

@Service
public class ${modelName}BizImpl extends BaseServiceImpl<${modelName}, ${pkType}, ${modelName}Dao> implements I${modelName}Biz{

	@Override
	public ${pkType} convertId(String idStr) {
	<#if pkType == "String">
		return idStr;
	<#else>
		return ${pkType}.parse${pkType}(idStr);
	</#if>
	}

	@Override
	public int delete(${modelName} t) {
		t.setDelFlag(true);
		return baseMapper.updateByPrimaryKeySelective(t);
	}
}
